// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//UI
import MuseUI from 'muse-ui';
import 'muse-ui/dist/muse-ui.css';
Vue.use(MuseUI);

import axios from './axios'
Vue.prototype.$ajax = axios

import Toast from 'muse-ui-toast';
const ToastOption = {
	position: 'top', // 弹出的位置
	time: 2000, // 显示的时长
	closeIcon: 'close', // 关闭的图标
	close: true, // 是否显示关闭按钮
	successIcon: 'check_circle', // 成功信息图标
	infoIcon: 'info', // 信息信息图标
	warningIcon: 'priority_high', // 提醒信息图标
	errorIcon: 'warning'
}
Vue.use(Toast, ToastOption);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	components: {
		App
	},
	template: '<App/>',
})
